﻿using System.Windows.Forms;
using MessageHandler;

namespace Chatclient
{
	public class ErrorHandler
	{
		public void ShowError(ChatException err)
		{
			MessageBox.Show(err.Message, err.Caption, System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
		}

		public void ShowInformation(ChatException info)
		{
			MessageBox.Show(info.Message, info.Caption, System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Information);
		}
	}
}
